package com.gzhryc.shared_device.oem.code.business;

import com.gzhryc.shared_device.bxscn.code.IBXSCNShopBusinessEventListener;
import com.gzhryc.shared_device.bxscn.code.dao.db.BXSCNShopOrder;
import com.gzhryc.shared_device.oem.code.member.services.MemberBusinessOrderService;

public class BXSCNShopBusinessEventListener implements IBXSCNShopBusinessEventListener {

    @Override
    public void leaseFinish(BXSCNShopOrder deviceOrder, String deviceSn, Integer deviceOrderState) {
        //修改订单关联用户
        MemberBusinessOrderService.self(deviceOrder.getCreateDate()).updateDeviceSn(deviceOrder.getTradeNo()
        		,deviceOrder.getBatteryTypeName(),deviceSn);
    }
}
